package cn.itsource.ymcc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = "cn.itsource")
//@EnableDiscoveryClient
@EnableCaching
@EnableFeignClients("cn.itsource.ymcc")//加上这个注解当启动的时候回去扫描所有的@feignclient
public class CourseApp {
    public static void main(String[] args) {
        SpringApplication.run(CourseApp.class,args);
    }

}
